//ts-ignore
import {get, post, put} from "@/utils/request";

// 用户相关接口地址
export const authApi = {
    // 获取验证码
    sendSmsCode: (params: any) => post<any>("/member/auth/send-sms-code", params),
    // 注册
    register: (params: any) => post<any>("/member/auth/register", params),
    // 重置
    resetPassword: (params: any) => put<any>("/member/user/reset-password", params),
    // 重置
    updatePassword: (params: { oldPwd:string,password:string}) => put<any>("/member/user/update-password-by-pwd", params),
    // 登录
    login: (params: any) => post<any>("/member/auth/login", params),
    //获取用户基本信息
    getUserInfo: () => get<any>("/member/user/get"),
    //登录
    logout: () => post<any>("/member/auth/logout"),
};
